﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFServerDLL;

namespace TestIFServer
{
    class Program
    {
        static void Main(string[] args)
        {
            SubscribeResponeClient proxyRsp = new SubscribeResponeClient();
            proxyRsp.StartByDebug(Guid.NewGuid(), new Rsp(), "MyClientEndpointVehicleRespone");
            PublishProxy proxy = new PublishProxy("MyClientEndpointVehicleCommand");
            var x = proxy.Login(new IFServerDLL.Broker.BrokerUserBase() { BrokerID = "8000", UserName = "text01", UserID = proxyRsp.ClientID, MarketInstrument = new List<string>() { "IF1312"} });
            proxy.OrderInsert(x.UserID, new IFServerDLL.Model.UserOrdBase() { Instrument = "IF1312", Price = 2100, Volume = 1, UserCreateOrdTime = DateTime.Now, OpenOrClose = IFServerDLL.Model.MyEnumOpenClose.Open });
            Console.ReadLine();
        }
    }
}
